package com.smartwebee.android.blespp.bean;

/**
 * Created by steward on 2018/7/11.
 */

public class XAxisData {
    private int minutes;
    private int seconds;
    private int hours;

    public int getHours() {
        return hours;
    }

    public void setHours(int hours) {
        this.hours = hours;
    }

    public XAxisData(int hours, int minutes, int seconds) {
        this.minutes = minutes;
        this.seconds = seconds;
        this.hours = hours;
    }

    public String getFormatDate() {
        return getHours() + ":" + getMinutes() + ":" + getStringSeconds();
    }

    public int getMinutes() {
        return minutes;
    }

    public void setMinutes(int minutes) {
        this.minutes = minutes;
    }

    public int getSeconds() {
        return seconds;
    }

    public String getStringSeconds() {
        if (String.valueOf(seconds).length() == 1) {
            return "0" + String.valueOf(seconds);
        }
        return String.valueOf(seconds);
    }

    public void setSeconds(int seconds) {
        this.seconds = seconds;
    }
}
